package board.dto;

import java.util.ArrayList;

public class ListDTO {
	
	private ArrayList<BoardDTO> list = null;
	
	private PagingDTO pagingDTO = null;
	
	public static ListDTO instance = null;
	
	public static ListDTO getInstance() {
		if ( instance == null ) {
			instance = new ListDTO();
		}
		return instance;
	}

	public ArrayList<BoardDTO> getList() {
		return list;
	}

	public void setList(ArrayList<BoardDTO> list) {
		this.list = list;
	}

	public PagingDTO getPagingDTO() {
		return pagingDTO;
	}

	public void setPagingDTO(PagingDTO pagingDTO) {
		this.pagingDTO = pagingDTO;
	}

	public static void setInstance(ListDTO instance) {
		ListDTO.instance = instance;
	}

	private ListDTO() {
		super();
		// TODO Auto-generated constructor stub
	}

	public ListDTO(ArrayList<BoardDTO> list, PagingDTO pagingDTO) {
		super();
		this.list = list;
		this.pagingDTO = pagingDTO;
	}

	@Override
	public String toString() {
		return "ListDTO [list=" + list + ", pagingDTO=" + pagingDTO + "]";
	}
	
	    
	
	

}
